package work;

import javax.jws.soap.SOAPBinding;

public class StaticDemo {
    public static void main(String[] args) {
        int n1 = Character.MAX_VALUE;
        int n2 = Character.MIN_VALUE;
        System.out.println(n1);
        System.out.println(n2);
        int m1 = Short.MAX_VALUE;
        int m2 = Short.MIN_VALUE;
        System.out.println(m1-m2);
        System.out.println(m1);
        System.out.println(m2);


        //System.out.println(Xoo.a);
        //Xoo.say();
        Xoo xoo = new Xoo();
        System.out.println(xoo.a);
        xoo.say();

        //System.out.println(Yoo.a);
        //Yoo.say();
        Yoo yoo = new Yoo();
        System.out.println(yoo.a);
        yoo.say();

        Xoo xy = new Yoo();
        System.out.println(xy.a);
        xy.say();

        Zoo zoo = new Zoo();
        System.out.println(zoo.z);
        Xoo.changeZoo(zoo);
        System.out.println(zoo.z);

    }
}

class Xoo{
    public static int a = 5;
    public static void say(){
        System.out.println("Xoo");
    }
    public static void changeZoo(Zoo zoo){
        zoo.z = 666;
    }
}

class Yoo extends Xoo{
    public static int a = 10;
    public static void say(){
        System.out.println("Yoo");
    }
    /*public static void sayHi1(){

    }
    public static int sayHi1(){
        return 0;
    }*/
}

class Zoo{
    int z = 5;
}
